
/**
* Convert a string topascal case format
*/
app.service("toPascalCaseService", [
    function() 
	{
        this.convert = function(str) {
            return str.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
        };
    }
]);

/**
* Convert a string to lower format
*/
app.service("toLowerService", [
    function() {
        this.convert = function(str) {
			return str.toLowerCase(); 
        };
    }
]);